home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypertxt / msdos / hydos10 / mode < prev    next >
Text File  |  1991-04-25  |  6KB  |  145 lines

  1.                                     MODE
  2.      Set mode of operation for printers, comm ports, display, keyboard
  3.                  See also <COUNTRY> <NLSFUNC> <CHCP> <KEYB>
  4.  
  5. MODE is used to display or set the mode of operation for a printer,
  6. asynchronous adapter, or graphics monitor.  It also can redirect
  7. parallel printer output to the asynchronous adapter, prepare devices
  8. for code page switching, and change the keyboard auto-repeat rate.
  9.  
  10. COMMAND TYPE: External                  VERSION: 2.0 and up
  11.  
  12. The various possible uses of mode will be explained in groups
  13. depending on the devices affected. NOTE: The exact options available
  14. for MODE vary with different DOS versions.  Refer to your DOS
  15. reference manual for more information
  16.  
  17. MODE - device status
  18.  
  19. USE: MODE [device][/status]
  20. device  is the device to display status for (CON, PRN, LPT1, COM1 etc.)
  21. /status is required only for the status of redirected parallel printers
  22.         If no device is specified, MODE reports the status of all
  23.         installed devices
  24.  
  25. MODE - configure printer
  26. USE: MODE LPT#[:][n][,[m[,R]]
  27.  
  28. LPT# represents the printer (LPT1,LPT2,LPT3)
  29. n    specifies either 80 or 132 characters per line
  30. m    specifies 6 or 8 lines per inch
  31. R    specifies a retry action to take when the printer is not ready.
  32.      (DOS 3.3 and earlier) only value is "P" - continue trying when
  33.      printer is busy.
  34.      (DOS 4.x) Possible values for R are:
  35.       "E" - return error if printer busy
  36.       "B" keep trying if busy (same as "P" in earlier versions)
  37.       "R" returns "ready" even if printer status says not-ready
  38.  
  39. Default values are LPT1, 80 columns, 6 lpi
  40.  
  41. MODE - Monitor display mode
  42.  
  43. USE: MODE display, n
  44. or   MODE [display],shift
  45. or   MODE con[:][cols=n][lines=m]
  46.  
  47. display is one of the following options describing the monitor attached.
  48.  
  49. 40   screen width of 40 characters (CGA only)
  50. 80   screen width of 80 characters (CGA only)
  51. BW40 disables color on a color monitor and sets screen width to 40
  52. BW80 disables color on a color monitor and sets screen width to 80
  53. CO40 enables color on a color monitor and sets screen width to 40
  54. CO80 enables color on a color monitor and sets screen width to 80
  55. MONO selects a monochrome monitor (fixed width of 80 characters)
  56.  
  57. shift - set to "L" or "R" shifts the display left or right to align
  58.         correctly (CGA only)
  59.  
  60. (DOS 4.x only)
  61. n -  number of lines on display (values are 25 (all displays), 43
  62.      (EGA/VGA) and 50 (VGA only)
  63. m  - number of columns (values are 40 or 80)
  64.  
  65. MODE - Set keyboard repeat rate (DOS 4.x only)
  66.  
  67. USE: MODE con[:] rate=r delay=d
  68. r - autorepeat interval time (1-32)
  69. d - autorepeat start delay time (1-4, corresponding to 0.25, 0.5, 0.75,
  70.     1.0 seconds)
  71.  
  72. MODE - configure asynchronous adapter (Serial Port)
  73.  
  74. USE: MODE COM#[:]b[,p[,d [,s[,r]]]]
  75. or   (DOS 4.x and later)
  76.      MODE COM# baud=b[ data=d][stop=s][parity=p][retry=r]
  77.  
  78. COM# is the asynchronous adapter to select.  The acceptable values for #
  79.      are 1,2,3 or 4 (1,2 only for pre DOS 4.x)
  80. b    selects the speed that the asynchronous adapter will operate at. Only
  81.      the first two digits are given.  Acceptable values are:
  82.        110, 150, 300, 600, 1200, 2400, 4800, and 9600.
  83. p    selects number or parity bits.  Acceptable values for "p" are
  84.        N(none), O (odd), or E (even).
  85. d    is the number of data bits (7 or 8)
  86. s    is number of stop bits (1 or 2)
  87. r    specifies a retry action to take when the serial device is not ready.
  88.      (DOS 3.3 and earlier)
  89.        only value is "P" - continue trying when device is busy.
  90.      (DOS 4.x) Possible values for r are:
  91.        "E" - return error if device busy
  92.        "B" keep trying if busy (same as "P" in earlier versions)
  93.        "R" returns "ready" even if device status says not-ready
  94.  
  95. EXAMPLE: MODE COM1:96,N,8,1,P
  96. selects asynchronous port #1 and sets it for 9600 baud, no parity, 8
  97. databits, 1 stopbit, and sets it to be used with a printer with continuous
  98. retry.
  99.  
  100. MODE - Redirect printing to a serial port
  101.  
  102. USE: MODE LPT#[:] [= COMn]
  103.  
  104. LPT# is the parallel port number to be redirected.
  105. COMn is the asynchronous adapter that the output will be redirected to.
  106.      If not given, then any prior redirection of LPT1 is disabled.
  107.  
  108. EXAMPLE: MODE LPT1: = COM1
  109. redirects output from LPT1 to COM1.  Any future attempts to print to
  110. LPT1 will be automatically routed to COM1.  This example assumes that
  111. COM1 has been initialised using a previous MODe command.
  112.  
  113. MODE - Set device code pages (DOS 3.3 and later)
  114.  
  115. USE: MODE device CODEPAGE PREPARE = ((cp) [d:][path]filename)
  116. or   MODE device CODEPAGE SELECT = cp
  117. or   MODE device CODEPAGE [/STATUS]
  118. or   MODE device CODEPAGE REFRESH
  119.  
  120. NOTE: The following abbreviations may be used
  121.  cp  - CODEPAGE     PREP - PREPARE    SEL - SELECT
  122.  REF - REFRESH      STA  - STATUS
  123.  
  124. device specifies one of CON, PRN, LPT1, LPT2, or LPT3.
  125. cp     specifies one code page number. The code page must be of the
  126.        following values, 437, 850, 860, 863, 865.
  127. d: path filename specifies the name of the file containing the code
  128.        pages. The code page information files provided on the DOS start up
  129.        diskette have the extension of .CPI
  130.          4201.CPI - IBM PROPRINTER    5202.CPI - IBM Quietwriter III
  131.           EGA.CPI - EGA DEVICES        LCD.CPI - IBM CONVERTIBLE LCD
  132.  
  133. PREPARE - tells MSDOS to prepare the specified code page for the specified
  134.           device.  You must prepare a code page before it can be used by
  135.           the device.
  136. SELECT -  selects the code page for use by a device.  It must have been
  137.           PREPAREd first.
  138. REFRESH - this reinstates prepared code pages which have been lost due to
  139.           hardware or other errors (such as turning off the printer).
  140. /STATUS - displays current code pages prepared for a device
  141.  
  142. EXAMPLE: MODE LPT1 cp PREP=(850) 4201.cpI
  143. This example specifies code page of 850 to be prepared for LPT1 and the
  144. character shapes for IBM Proprinter Model 4201
  145.